<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="navbar navbar-default navbar-fixed-top hidden-xs" style="background: #D6ECCE;">
	<div class="container">
		<!-- Brand and toggle get grouped for better mobile display -->
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed"
				data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
				<span class="sr-only">Toggle navigation</span> <span
					class="icon-bar"></span> <span class="icon-bar"></span> <span
					class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="" style="color:white;font-weight: bold;"><span class="glyphicon glyphicon-flash"></span> 永川公交</a>
		</div>
		<!-- Collect the nav links, forms, and other content for toggling -->
		<div class="collapse navbar-collapse"
			id="bs-example-navbar-collapse-1">
			<ul class="nav navbar-nav">
				<c:forEach items="${indexNavis.resultList }" var="indexNavi">
					
					<li <c:if test="${indexNavi.indexNavi_name == active}">class="active"</c:if>><a href="${indexNavi.indexNavi_url }"><span class="${indexNavi.indexNavi_icon }"></span> ${indexNavi.indexNavi_name }</a></li>
 				</c:forEach>
 				<c:if test="${indexNavis_more.totalRecord > 0}">
	 				<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">更多<span class="caret"></span></a>
						<ul class="dropdown-menu">
							<c:forEach items="${indexNavis_more.resultList }" var="indexNavis_more">
								<c:if test="${indexNavis_more.indexNavi_name!='divider'}">
									<li><a href="${indexNavis_more.indexNavi_url }"><span class="${indexNavis_more.indexNavi_icon }"></span> ${indexNavis_more.indexNavi_name }</a></li>
	 							</c:if>
	 							<c:if test="${indexNavis_more.indexNavi_name=='divider'}"><li class="divider"></li></c:if>
	 						</c:forEach>
						</ul>
					</li>
				</c:if>
			</ul>
			<!-- 查询 -->
			<form class="navbar-form navbar-right" action="q">
				<div class="input-group">
					<input type="text" value="${q }" name="q" class="form-control" placeholder="路线/站点/换乘">
					<div class="input-group-btn">
					<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span> 查询</button>
					</div><!-- /btn-group -->
				</div><!-- /input-group -->
    
			</form>
		</div>
		<!-- /.navbar-collapse -->
	</div>
	<!-- /.container-fluid -->
</div>
<div class="navbar navbar-inverse hidden-xs" style="margin-bottom: 0px;"></div>